<template>
  <el-dialog title="日 志" :visible.sync="visible" width="1000px">
    <div>
      <XmTable :config="logTableConfig" :noWatchParams="noWatchParams" class="table" ref="table">
        <div slot="filter">
          <div class="fr mb-10">
            <el-button
              type="primary"
              @click="fetch"
              size="small"
            >刷新</el-button>
          </div>
        </div>
      </XmTable>
    </div>
  </el-dialog>
</template>

<script>
import { logTableConfig } from '../config/table'
export default {
  data() {
    return {
      logTableConfig,
      visible: false,
      type: 'add',
      noWatchParams: {
        transferDriverInfoId: '',
      }
    }
  },
  methods: {
    show({ data }) {
      this.visible = true
      this.noWatchParams.transferDriverInfoId = data.id
      this.$nextTick(() => {
        this.fetch()
      })
    },
    fetch() {
      this.$refs.table.fetch()
    },
  },
}
</script>

<style lang="scss" scoped>
</style>
